
<%@ page language="java" import="java.util.*,java.sql.*" contentType="text/html;charset=utf-8"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="com.valuebean.shop" %>
<%  ArrayList goodslist=(ArrayList)request.getAttribute("list");%>
<html>
 <head>
<title>Llama商城</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/CuitShopPlatform/css/bootstrap.min.css">
    <script src="/CuitShopPlatform/js/jquery-1.12.0.min.js"></script>
    <script src="/CuitShopPlatform/js/bootstrap.min.js"></script>
</head>

<table class="table table-border table-hover">
  <tr height="50"><td colspan="5" align="center">商品信息表</td></tr>
  <tr height="30">
    <td align="center">商品名称</td>
    <td align="center">商品价格</td>
    <td align="center">库&nbsp;&nbsp;&nbsp;&nbsp;存</td>
    <td align="center">所属类别</td>
    <td align="center">信息描述</td>
  </tr>
  <% if(goodslist==null||goodslist.size()==0){ %>
    <tr><td>没有商品可显示</td></tr>
  <%
     } 
     else{
        for(int i=0;i<goodslist.size();i++){
           shop shop=(shop)goodslist.get(i);
   %>
   <tr height="50" align="center" border="1">
      <td ><%=shop.getShopname()%></td>
      <td ><%=shop.getPrice()%></td> 
      <td ><%=shop.getNum()%></td> 
      <td ><%=shop.getClasses()%></td> 
      <td ><%=shop.getShopinformation()%></td>
   </tr>
   <%
         }
       }
   %>  
   </table>
   </html>